package cn.zcq100.Factory;

public  class Factory {
	
	public static Pizza make(String type){
		Pizza pizza;
		if(type=="nyPizza"){
			pizza=new NyPizza();
		}else if(type=="italyPizza"){
			pizza=new  ItalyPizza();
		}else {
			return null;
		}
			return pizza;
		}
}
